# ----------------------------------------------------------------------
#  The information and source code contained herein is the
#  exclusive property of Karthikeyan and Samuel vijaykumar. 
#  No part of this software may be used, reproduced, stored or distributed in any form
#  without explicit written authorization from the authors.
# ----------------------------------------------------------------------
from types import *
import sys

def describeVars(vname,attr,write=0):
	"""
   	All the variables Come here
   	"""

   	if type(attr) is StringType :
      		case = "String"
   	elif type(attr) is IntType :
      		case = "Integer"
   	elif type(attr) is ListType :
      		case = "List"
   	elif type(attr) is NoneType :
      		case = "None"
      
   	if write == 0 :
      		print '    Variable: %s  	  Type %s'%(vname,case) 
   	elif write == 1 :
      		generatefile().writefile('Variable: %s  	  Type %s'%(vname,case))
   	else :
      		print "Unexpected variable encountered"
      		sys.exit(2)
